﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace MLMBonus.DataProvider
{
    public class BonusDataProviderConfigurationSection : ConfigurationSection
    {
        public BonusDataProviderConfigurationSection()
        { }

        [ConfigurationProperty("name", DefaultValue="BonusDataProvider", IsRequired=true)]
        public string Name
        {
            get
            {
                return (string)this["name"];
            }
            set
            {
                this["name"] = value;
            }
        }

        [ConfigurationProperty("type"
            , DefaultValue = "MLMBonus.DataProvider.IBonusDataProvider, MLMBonus.DataProvider"
            , IsRequired = true)]
        public string Type
        {
            get
            {
                return (string)this["type"];
            }
            set
            {
                this["type"] = value;
            }
        }
    }
}
